<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {if 7!=$row.type}
    <div class="form-group" >
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_id" data-rule="required" data-source="shopro/goods/goods/index" data-field="title"    class="form-control selectpage" name="row[goods_id]" type="text" value="{$row.goods_id|htmlentities}">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('级别')}:</label>
        <div class="col-xs-12 col-sm-4">
            <select id="c-role" data-rule="required" class="form-control selectpicker" name="row[role]" disabled>
                <option value="0" {if 0==$row.role}selected{/if}>无</option>
                <option value="1" {if 1==$row.role}selected{/if}>视力健康大使</option>
                <option value="2" {if 2==$row.role}selected{/if}>区域服务商</option>
                <option value="3" {if 3==$row.role}selected{/if}>城市服务商</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reward')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reward" class="form-control" name="row[reward]" type="text" value="{$row.reward|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-4">
            <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]" disabled>
                <option value="1" {if 1==$row.type}selected{/if}>推荐奖励</option>
                <option value="2" {if 2==$row.type}selected{/if}>复购奖励</option>
                <option value="3" {if 3==$row.type}selected{/if}>补贴奖励</option>
                <option value="4" {if 4==$row.type}selected{/if}>平级奖励</option>
                <option value="5" {if 5==$row.type}selected{/if}>间推奖励</option>
                <option value="6" {if 6==$row.type}selected{/if}>间推奖励</option>
                <option value="7" {if 6==$row.type}selected{/if}>升级金额</option>
            </select>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
